#pragma once 
#include "timestamp.h"
#include <bits/types/struct_timeval.h>
#include <sys/time.h>
namespace TinyRPC{

TimeStamp TimeStamp::Now(){
    struct timeval tv;
    gettimeofday(&tv, 0);
    return TimeStamp(tv.tv_sec*kMicroSecPerSecond + tv.tv_usec);
}


}